package com.libs.xxf.simple;

import android.app.Application;

import com.orhanobut.logger.AndroidLogAdapter;
import com.tools.xxf.configlib.config.Libconfig;

/**
 * TODO
 *
 * @author XXF
 *         Create Time : 2017/11/29 16:29
 */
public class BaseApplication extends Application {


    @Override
    public void onCreate() {
        super.onCreate();

        //初始化操作
        Libconfig
                .init(this)
                .initBugly()
                .initUtilcode()
                .initZxin()
                .initLog(new AndroidLogAdapter() {
                    @Override
                    public boolean isLoggable(int priority, String tag) {
                        return BuildConfig.DEBUG;
                    }
                })
                .setupLeakCanary()
                .configure();
    }
}
